package com.sunyard.domee.commons.utils;

import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

/**
 * @program domee
 * @description
 * @author raoinyx@163.com
 * @create 2020-07-18 00:23
 */
public class RandomUtil {

    public static String getUuId() {
        return UUID.randomUUID().toString().replace("-","");
    }

    public static String random2() {
        return String.format("%02d", ThreadLocalRandom.current().nextInt(100));
    }

    /**
     * 获取商户ID
     * @return
     */
    public static String getToken() {
        return getUuId().substring(3)+"t"+random2();
    }


}
